#include<bits/stdc++.h>
using namespace std;
int a[105000],srt[105000],na[105000];
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n;
	cin>>n;
	memset(srt,0,sizeof(srt));
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		srt[a[i]]++;
	}
	int nn=0;
	for(int i=1;i<=150000;i++)
	{
		if(srt[i])	na[++nn]=srt[i];
	}
	na[0]=0;
	for(int i=1;i<=nn;i++)
	{
		na[i]=max(na[i],na[i-1]);
	}
	cout<<na[nn]<<endl;
	return 0;
}
